import abc


class AbsDataBase(metaclass=abc.ABCMeta):

    @abc.abstractmethod
    def _get_connection(self):
        pass

    @abc.abstractmethod
    def _recycle_connection(self, connection):
        pass

    @abc.abstractmethod
    def close_connection(self):
        pass

    @abc.abstractmethod
    def execute_query(self, sql):
        pass

    @abc.abstractmethod
    def execute_update(self, sql):
        pass
